import "../../common/polyfill";
import render from "./render";
import bindEvent from "./event";
import {checkOptions} from "../../common/utils";

const regPayment = (opts = {})=>{
    console.log(opts);
    if (!checkOptions(opts)) {
        return;
    }
    const defaultOpts = {
        paymentUsernamePlaceHolder : "请输入您的xx宝账号",
        paymentPasswordPlaceHolder : "请输入您的xx宝密码"
    };
    const options = Object.assign(defaultOpts, opts);

    render(options);
    bindEvent(options);
};
export { regPayment }